import request from '@/router/axios';

//-------------------- 规范文件-------------------//

// 详情
export const getguifanDetail = (params,system = 'systemguifanfilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/detail',
		method: 'get',
		params: params
	})
}
// 列表
export const getguifanList = (params,system='systemguifanfilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/list',
		method: 'get',
		params: params
	})
}
// // 创建 udi
// export const savefiles1 = (params,system='systemguifanfilesprocess') => {
// 	return request({
// 		url: '/blade-module/'+system+'/save',
// 		method: 'post',
// 		data: params
// 	})
// }
// 创建
export const savefiles = (params,system='systemguifanfilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/save',
		method: 'post',
		data: params
	})
}
// 修改
export const update = (params,system='systemguifanfilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/update',
		method: 'post',
		data: params
	})
}
// 升版
export const saveUpgrade = (params,system='systemguifanfilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/saveUpgrade',
		method: 'post',
		data: params
	})
}
// 升版未通过编辑
export const updateUpgrade = (params,system='systemguifanfilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/updateUpgrade',
		method: 'post',
		data: params
	})
}
// 审核、评审、批准详情
export const getdealDetail = (params,system='systemguifanfilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/dealDetail',
		method: 'post',
		params: params
	})
}
// 审核、评审、批准
export const deal = (params,system='systemguifanfilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/deal',
		method: 'post',
		data: params
	})
}




//  选择文件  文件列表
export const fafangwenjianList = (params,system='issuefilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/fafangwenjianList',
		method: 'post',
		data:params
	})
}
//   选择 版本号
export const fafangwenjianVersionList = (params,system='issuefilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/fafangwenjianVersionList',
		method: 'post',
		data:params
	})
}
//删除
export const remove = (params,system='issuefilesprocess') => {
	return request({
		url: '/api/blade-module/'+system+'/remove',
		method: 'post',
		params: params
	})
}
